package com.xinshujia.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinshujia.entity.ResourceEntity;

import java.util.Set;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-12 09:14       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 * 资源接口
 */
public interface ResourceService extends IService<ResourceEntity> {
    /**
     * 根据角色Ids查询资源
     */
    Set<ResourceEntity> findResourcesByRIds(Set<Long> roleIds);


    /**
     * 分页获取资源
     *
     */
    Page<ResourceEntity> getResourcesByPage(Long pageNum, Long pageSize, String resourceName);

    /**
     * 新增资源
     */
    boolean insertResource(ResourceEntity resourceEntity);
}
